<link href="/Static/mobile/css/weui.min.css" rel="stylesheet">
<style>
.oneline{
	overflow: hidden;
	text-overflow:ellipsis;
	white-space: nowrap;
}
.members_con {
    margin: 1%;
}
.weui-media-box{
	padding:5px;
}
.weui-media-box_appmsg .weui-media-box__hd {
    margin-right: .8em;
    width: 100px;
    height: 100px;
    line-height: 100px;
    text-align: center;
}
.weui-media-box__title{
	font-size:15px;
}
.weui-media-box__desc{
	font-size:15px;
	color:#e6282c;
}

.detail-searchbox {
	padding: 5px 3.124%;
	background: #f3f3f3;
}
.detail-searchbox .members_search {
	margin-bottom: 8px;
	background: #fff;
}
.weui-media-box_appmsg {
    -webkit-box-align: stretch; 
    -webkit-align-items: stretch; 
    align-items: stretch; 
}
.mlist_nav span.cur{
	color: #e6207a;
    border-bottom: 2px solid #e6207a;
}
</style>

<div class="membersbox pad50">

	<div class="detail-searchbox">
		<section class="members_search">
			<form method="get" action="">
				<input type="text" name="goods_name" id="goods_name" value="<?php echo get('goods_name');?>" placeholder="商品搜索：请输入商品关键字">
				<button type="submit"></button>
			</form>
		</section>
	</div>

	<section class="mlist_nav g-box">
		<?php $orderby = get('orderby');?>
		<span class="<?php echo (($orderby=='') ? 'cur' : ''); ?>"><a href="/mobile/goods/lists/?orderby=">默认</a></span>
		<span class="<?php echo (($orderby=='pricedown') ? 'cur' : ''); ?>"><a href="/mobile/goods/lists/?orderby=pricedown">价格</a></span>
		<span class="<?php echo (($orderby=='sales') ? 'cur' : ''); ?>"><a href="/mobile/goods/lists/?orderby=sales">销量</a></span>
		<span class="<?php echo (($orderby=='pv') ? 'cur' : ''); ?>"><a href="/mobile/goods/lists/?orderby=pv">人气</a></span>

	</section>

<?php foreach($datalist as $kk=>$vv){?>

<section class="mlist_nav" style="margin-top:10px;background-color:#e6207a;">
	<span>
	<a class="fl" style="color:#fff;margin-left:10px;font-size:16px;border-bottom: 0;font-weight:bold;" href="/mobile/goods/lists/?orderby=<?php echo get('orderby');?>&gtype_id=<?php echo $kk;?>">| <?php echo $gtype[$kk]['gtype_name']; ?></a>
	<a class="fr" style="color:#fff;margin-right:15px;border-bottom: 0;" href="/mobile/goods/lists/?orderby=<?php echo get('orderby');?>&gtype_id=<?php echo $kk;?>">更多></a>
	</span>
</section>


<!-- <div class="weui-panel weui-panel_access">
			
		<?php foreach($vv as $k=>$v){?>
		<div style="border-bottom: 4px #ededed solid;" class="weui-panel__bd">
		<a href="/mobile/goods/index/?goods_id=<?php echo $v['goods_id'];?>" class="weui-media-box weui-media-box_appmsg">
			<div class="weui-media-box__hd">
				<img class="weui-media-box__thumb" src="<?php echo C("UPYUN_DOMAIN").$v['goods_pic'];?>!/fw/640" alt="">
			</div>
			<div class="weui-media-box__bd">
				<h5 class="weui-media-box__title"><?php echo $v['goods_name'];?></h5>
				<p class="weui-media-box__desc"><span class="yen">&yen;</span><?php echo $v['shop_price'];?></p>
			</div>
		</a>
		</div>
		<?php } ?>
</div> -->


<!--  

<section id="J-listgoods" class="mlist_goods newlist avr">
		<ul class="clearfix">
		
			<?php foreach($vv as $k=>$v){?>
			<li style="position: relative;" class="g-box por">
				<section>
					<a href="/mobile/goods/index/?goods_id=<?php echo $v['goods_id'];?>">
					<img src="<?php echo C("UPYUN_DOMAIN").$v['goods_pic'];?>!/fw/640"  onerror="javascript:this.src='__STATIC__mobile/images/goods.jpg';">
					</a>
					<span>热卖</span>
				</section>
				<section class="g-flex">
					<div class="goods-detail">
						<a href="/mobile/goods/index/?goods_id=<?php echo $v['goods_id'];?>"><?php echo $v['goods_name'];?></a>
						<p class="listsgoods-group"></p>
					</div>
					<p>
						<b> <em>¥</em> <?php echo $v['shop_price'];?>
						</b> <span class="original_price"><s>¥<?php echo $v['market_price'];?></s></span>
					</p>
				</section> 

			</li>
		<?php } ?>
			
		</ul>
	</section>
	
-->

	<section class="members_goodspic">
		<ul>
		
		<?php foreach($vv as $k=>$v){?>
		
		
			<li  class="biggoods">
			<a class="goodsimg" href="/mobile/goods/index/?goods_id=<?php echo $v['goods_id'];?>">
			<img data-original="<?php echo C("UPYUN_DOMAIN").$v['goods_pic'];?>!/fw/640" class="lazyload" width="100%"  onerror="javascript:this.src='__STATIC__mobile/images/goods.jpg';">
			</a>
				<section class="members_goodsimg_name rename clearfix" >
					<a href="/mobile/goods/index/?goods_id=<?php echo $v['goods_id'];?>"><?php echo $v['goods_name'];?></a>
					 <span> 
					<span class="yen">&yen;</span><?php echo $v['shop_price'];?>
					 <span class="original_price">原价：<s>&yen;<?php echo $v['market_price'];?></s></span>
					</span>
				</section>
				<a href="/mobile/goods/index/?goods_id=<?php echo $v['goods_id'];?>" style="position:absolute;right:15px;bottom:15px;background:#e6207a;"  class="weui-btn weui-btn_mini weui-btn_primary">购买</a>

			</li>
					
		<?php } ?>		
			
		</ul>
	</section>
	
	
	
<?php } ?>	


	


	<include file="Common:bottom" />
</div>

<include file="Common:nav" />
<include file="Common:xuanfubtn" />
<include file="Common:collectbtn" />
<include file="Common:js" />